﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Emailing;
using Volo.Abp.Emailing.Smtp;
using Volo.Abp.TextTemplating;

namespace PHMEE.BackgroundJobs
{
    public class TestQueueJob : IBackgroundJob
    {
        private readonly IVesselManager vesselManager;
        private readonly IEmailSender emailSender;

        public TestQueueJob(IVesselManager vesselManager,IEmailSender emailSender)
        {
            this.vesselManager = vesselManager;
            this.emailSender = emailSender;
        }
        public Task ExcuteAsync()
        {
            return Task.Run(() =>
            {
                //foreach (var item in vesselManager.GetVesselTypes())
                //{
                //    Console.WriteLine($"卢立法测试，key：{item.Key},value：{item.Value}");
                //}
                //emailSender.SendAsync("814570123@qq.com", "卢立法测试test", "测试abp发送Queue邮件");
            });

        }
    }
}
